:root {
    --primary-blue: #009ef7;
    --light-blue: #f1faff;
    --text-muted: #a1a5b7;
    --text-dark: #3f4254;
    --border-color: #eff2f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #f5f8fa; color: var(--text-dark); height: 100vh; overflow: hidden; }

.app-container { display: flex; width: 100vw; height: 100vh; }

/* --- Sidebar --- */
.sidebar { width: 80px; background: #fff; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; padding: 25px 0; flex-shrink: 0; }
.logo { width: 40px; height: 40px; background: var(--primary-blue); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 40px; }

.icon-item { 
    position: relative; font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px; 
    cursor: pointer; width: 45px; height: 45px; display: flex; align-items: center; 
    justify-content: center; border-radius: 8px; transition: 0.3s; 
}
.icon-item:hover, .icon-item.active { background: var(--light-blue); color: var(--primary-blue); }

/* Tooltip Fixed */
.icon-item::after {
    content: attr(data-tooltip); position: absolute; left: 60px; background: #1e1e2d; 
    color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 12px; 
    white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.icon-item:hover::after { opacity: 1; visibility: visible; }
.footer-icon { margin-top: auto; color: var(--text-muted); cursor: pointer; position: relative; }

/* --- Main Content --- */
.main-content { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }

.navbar { height: 65px; background: #fff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.nav-actions { display: flex; align-items: center; }

.tabs-bar { background: #fff; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.tabs-list { display: flex; gap: 20px; align-items: center; }

.tab { padding: 18px 0; font-size: 13px; font-weight: 500; color: #5e6278; cursor: pointer; border-bottom: 2px solid transparent; }
.tab:hover, .tab.active { color: var(--primary-blue); }
.tab.active { border-bottom: 2px solid var(--primary-blue); }

.tab.highlight { border: 1px solid #e4e6ef; padding: 6px 12px; border-radius: 6px; }

/* Dropdown Fixed */
.dropdown-wrapper { position: relative; }
.dd-menu {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px; padding: 10px 0; z-index: 100;
}
.dd-menu.show { display: block; }
.dd-menu a { display: block; padding: 10px 20px; text-decoration: none; color: var(--text-dark); font-size: 13px; }
.dd-menu a:hover { background: var(--light-blue); color: var(--primary-blue); }

.date-picker { border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.content-body { flex: 1; padding: 30px; overflow-y: auto; }
.white-card { background: #fff; height: 100%; min-height: 400px; border-radius: 12px; border: 1px solid var(--border-color); }

.footer { padding: 20px 30px; display: flex; justify-content: space-between; font-size: 12px; border-top: 1px solid var(--border-color); background: #fff; }
.footer-links a { text-decoration: none; color: #7e8299; margin-left: 15px; }

.btn-primary { background: var(--primary-blue); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.top-icons { display: flex; gap: 15px; color: var(--text-muted); font-size: 18px; margin: 0 20px; }
.avatar { width: 35px; border-radius: 8px; }
/* === Global Responsive Boilerplate === */
.mobile-menu-btn { display: none; font-size: 1.2rem; color: var(--text-dark); cursor: pointer; margin-right: 15px; }

@media (max-width: 900px) {
    .sidebar { position: absolute; left: -100%; transition: left 0.3s ease; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1); height: 100vh; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; width: 100%; max-width: 100vw; }
    .navbar { flex-wrap: wrap; height: auto; padding: 15px; justify-content: flex-start; gap: 10px; }
    .mobile-menu-btn { display: block; }
    .breadcrumb { flex-grow: 1; }
    .nav-actions { width: 100%; justify-content: space-between; margin-top: 10px; }
    .tabs-bar { flex-direction: column; padding: 10px 15px; gap: 15px; align-items: flex-start; }
    .tabs-list { flex-wrap: wrap; gap: 10px; width: 100%; }
    .footer { flex-direction: column; text-align: center; gap: 15px; }
    .footer-links a { margin: 0 5px; display: inline-block; }
    .content-body { padding: 15px; }
    .date-picker { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
    .nav-actions { flex-direction: column; gap: 15px; align-items: center; }
    .top-icons { margin: 0; justify-content: center; width: 100%; }
    .breadcrumb { font-size: 14px; }
}

